<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/commons/pages/taglibs.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<meta name="Generator" content="" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>鹰牌陶瓷合肥运营中心</title>
<meta name="keywords" content="鹰牌陶瓷,陶瓷,鹰牌,安徽,合肥" />
<meta name="description" content="鹰牌陶瓷合肥运营中心,联系我们" />
<meta name="author" content="" />
<link href="${ctx}/css/sub/style.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="${ctx}/themes/default/default.css" type="text/css" />
<link rel="stylesheet" href="${ctx}/css/main.css" type="text/css" />
<!-- IE6 fixes are found in styles/ie6.css -->
<!--[if lte IE 6]><link rel="stylesheet" type="text/css" href="${ctx}/css/ie6.main.css" /><![endif]-->
<style type="text/css">
body{height:100%;margin:0px;padding:0px}
#container{width:60%;height:60%}
</style>
</head>
<body>
<div id="main">
  <jsp:include page="../../header.jsp" />
  <div id="bd">
  	<div id="bd_left2" style="width: 211px; ">
      <div id="sortlist" class="m rank">
        <div class="mt">
		  <h2>销售网点</h2>
		</div>
		<div class="mc" id="adv" style="height: 486px;">
		  <table border="0" cellpadding="0" cellspacing="1">
		  	<c:set var="display" value="block" />
		  	<c:forEach var="cur" items="${saleGrids}" varStatus="vs">
		  	  <c:if test="${cur.is_shop eq 0}"><c:set var="display" value="none" /></c:if>
	  	      <input type="hidden" id="longitude_${cur.grid_id}" name="longitude" value="${cur.longitude}" />
	  	      <input type="hidden" id="latitude_${cur.grid_id}" name="latitude" value="${cur.latitude}" />
	  	      <input type="hidden" id="gridname_${cur.grid_id}" name="gridname" value="${cur.grid_name}" />
	  	      <input type="hidden" id="gridaddr_${cur.grid_id}" name="gridaddr" value="${cur.grid_addr}" />
	  	      <input type="hidden" id="gridtel_${cur.grid_id}" name="gridtel" value="${cur.tel}" />
	  	      <input type="hidden" id="imgurl_${cur.grid_id}" name="imgurl" value="${cur.accessory.save_url}" />
	  	      <tr style="display: ${display}">
	  	        <td align="left" class="sg_span" lang="${cur.grid_id}" title="${cur.grid_name}" style="padding-top: 5px;"><img src="${ctx}/css/images/marker_red_sprite.png" style="float: left;" /><span style="font-size:12px;padding-top:3px;">${cur.grid_name}</span></td>
	  	      </tr>
		  	</c:forEach>
		  </table>
		</div>
      </div>  
    </div>
	<div id="bd_right2" class="news" style="width: 733px;">
		<div class="mt">
			<h2>联系我们</h2>
			<div class="extra"><span style="padding-right:10px ">详细</span></div>
		</div>
		<div class="pd_title">联系我们</div>
		<div class="pd" style="margin-left:20px;">
		<p><b>办公室地址：合肥市徽州大道1603号省棉麻仓库办公楼1557室</b></p>
		<p><b>办公室电话：</b></p>
		<p><b>办公室QQ&nbsp;&nbsp;：<a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=139800551&site=qq&menu=yes"><img border="0" src="http://wpa.qq.com/pa?p=2:139800551:47" alt="点击这里给我发消息" title="点击这里给我发消息"></a></b></p>
		</div>
		<div class="pd">
			<iframe id="iframe" src="${ctx}/hf/ConnectUs/map.jsp?office_id=${office_id}" style="border:solid 1px red;float:right;margin-right:10px;width:700px;height:500px;" scrolling="no" frameborder="0">
			</iframe>
		</div>
		</div>
	</div>
</div>
<jsp:include page="../../footer.jsp" />
<script type="text/javascript">
$(".sg_span").click(function(){
	var longitude = $("#longitude_" + $(this).attr("lang")).val();
	var latitude = $("#latitude_" + $(this).attr("lang")).val();
	var gridname = $("#gridname_" + $(this).attr("lang")).val();
	var gridaddr = $("#gridaddr_" + $(this).attr("lang")).val();
	var gridtel = $("#gridtel_" + $(this).attr("lang")).val();
	var imgurl = $("#imgurl_" + $(this).attr("lang")).val();
	var grid = {'longitude':longitude,"latitude":latitude,"gridname":gridname,"gridaddr":gridaddr,"gridtel":gridtel,"imgurl":imgurl};
	document.getElementById("iframe").contentWindow.focusGrid(grid);
}).css({"cursor":"pointer"});

</script>
</body>
</html>
